<?php
/*
 * Xcache 缓存
 * @author     Mark <zhaody901@126.com>
 * @copyright  Copyright (c) 2013 lemon team
 * @version    $Id: 43ef9c3b0edd02f6025d4954f04ecf42da5c8b34 $
 * @time       14-2-7 上午10:25
 */
defined('IN_IXDCW') or exit('Access Denied');
class dcache {
	var $pre;

	/**
	 * constructor
	 */
	function __construct() {
		//
    }

	function get($key) {
		$key = $this->pre.$key;
		return xcache_get($key);
	}

	function set($key, $val, $ttl = 600) {
		$key = $this->pre.$key;
		return xcache_set($key, $val, $ttl);
	}

	function rm($key) {
		$key = $this->pre.$key;
		return xcache_unset($key);
	}

    function clear() {
        //
    }

	function expire() {
		//
	}
}
?>